const axios = require('axios')

export default {
  async get (url) {
    return axios({
      method: 'get',
      url: url
    })
  },
  async post (url, params) {
    return axios({
      method: 'post',
      url: url,
      // 如果使用data:params，后端接收到的是null
      params: params
    })
  }
}
